package demo5.service;

import demo5.dao.IUserDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UerServiceImpl implements IUserService{
    @Autowired
    public IUserDAO userDAO;
    public boolean login(String username,String password){
        System.out.println("UserService：开始处理用户登录操作");
        System.out.println("UserService：开始验证用户信息是否有误");
        System.out.println("UserService：获取用户信息");
        boolean success = userDAO.findUser();
        if (success){
            System.out.println("UserService：用户登陆成功");
        }else {
            System.out.println("UserService：用户登陆失败");
        }
        return false;
    }
}
